<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionNovedades.xhtml">
        <ui:define name="title">

        </ui:define>
        <ui:define name="body">
            <h:form id="form">

                <h:outputText escape="false" value="#{bundle.ListTblconceptospermanentesEmpty}" rendered="#{tblconceptospermanentesController.items.rowCount == 0}"/>
                <p:panel  id="panel" rendered="#{tblconceptospermanentesController.items.rowCount > 0}" header="#{bundle.ListTblconceptospermanentesTitle}"  style="panel">
                    <p:messages id="msgs"/> 
                    <p:dataTable value="#{tblconceptospermanentesController.items}" var="item" paginator="true" rows="10">
                        <p:column sortBy="#{item.ideEmp}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_ideEmp}"/>
                            </f:facet>
                            <h:outputText value="#{item.ideEmp}"/>
                        </p:column>
                        <p:column sortBy="#{item.nomEmp}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_nomEmp}"/>
                            </f:facet>
                            <h:outputText value="#{item.nomEmp}"/>
                        </p:column>
                        <p:column sortBy="#{item.concepto}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_concepto}"/>
                            </f:facet>
                            <h:outputText value="#{item.concepto}"/>
                        </p:column>
                        <p:column sortBy="#{item.referencia}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_referencia}"/>
                            </f:facet>
                            <h:outputText value="#{item.referencia}"/>
                        </p:column>
                        <p:column sortBy="#{item.valor}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_valor}"/>
                            </f:facet>
                            <h:outputText value="#{item.valor}"/>
                        </p:column>
                        <p:column sortBy="#{item.cantidad}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_cantidad}"/>
                            </f:facet>
                            <h:outputText value="#{item.cantidad}"/>
                        </p:column>
                        <p:column sortBy="#{item.codCompania}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_codCompania}"/>
                            </f:facet>
                            <h:outputText value="#{item.codCompania}"/>
                        </p:column>
                        <p:column sortBy="#{item.idEstado}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTblconceptospermanentesTitle_idEstado}"/>
                            </f:facet>
                            <h:outputText value="#{item.idEstado}"/>
                        </p:column>
                        <p:column>

                            <p:commandButton action="#{tblconceptospermanentesController.prepareEdit}" value="#{bundle.ListTblconceptospermanentesEditLink}"/>

                            <p:commandButton action="#{tblconceptospermanentesController.destroy}" update=":form"  value="#{bundle.ListTblconceptospermanentesDestroyLink}"/>
                        </p:column>
                    </p:dataTable>
                </p:panel>

                <p:commandButton action="#{tblconceptospermanentesController.prepareCreate}" value="#{bundle.ListTblconceptospermanentesCreateLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
